---@class SkillEffect2082100:BaseSkillEffect
SkillEffect2082100 = ClientFight.CreateClass("SkillEffect2082100",ClientFight.BaseSkillEffect)
local t = SkillEffect2082100
---@param fight Fight
---@param fighter Fighter
---@param skill FightSkill
---@param center Vector2
---@param excludes table<number,boolean>
---@return Fighter
function t:selectAttackTarget( fight, fighter, skill, center,excludes)
    local skillBean = skill.skillBean
    local targets = SkillManager.selectAttackTargets(fight, fighter, skill,
            skillBean.f_TargetRange, skillBean.f_Target, AttackUtils.getAttackRadius(fighter, skill), AttackUtils.getAttackShape(fighter, skill),
            center, skillBean.f_TagActivate, nil);

    local resultFighter;

    -- 远程单位集合
    local rangedList = {}
    for k,target in pairs(targets) do
        if target:isRangedCLass() then
            table.insert(rangedList,target)
        end
    end
    if (#rangedList == 0) then
        resultFighter = targets[fight:random(#targets)];
    else
        resultFighter = rangedList[fight:random(#rangedList)];
    end

    return resultFighter;
end
t.New()